<!doctype html>
<html>
<head>
  <title>Draggable and resizable</title>
  <meta charset="utf-8" />
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>
  <style>
    #draggable {
      width:200px;
      height:200px;
      background-color:green;
    }
    #resizable {
      width:200px;
      height:200px;
      background-color:red;
    }    
  </style>
</head>

<body>
  <div id="draggable">
    Drag me around!
  </div>
  
  <div id="resizable">
    Resize me!
  </div>
  
  <script>
    $("#draggable").draggable();
    $("#resizable").resizable();
  </script>
</body>
</html>
